home *** CD-ROM | disk | FTP | other *** search
- /* example Postscript script file for TSMorph */
- /* This script converts each image using ppm */
- /* and wasp and then deletes the original */
- /* $VER: ToHam_TSM 2.0 (13.6.93)
- */
- parse arg Frame TotalFrames Single FileName
- /* Frame - current frame number starting from Start
- * TotalFrames - total number of frames
- * Single - 1 for Single image warp, 0 for two image morph
- * FileName - Name of 24 bit image just produced
- */
-
- /* Convert to ppm format in ram:temp */
- address command '24toppm '||FileName||' ram:temp'
-
- /* Convert to HAM format in ram:temp.n where n = frame number */
- address command 'wasp ram:temp ram:temp.'||Frame
-
- /* Delete original and temporary files */
- address command 'delete '||FileName
- address command 'delete ram:temp'
-
- exit
-